/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

// 调整项管理
const adjustmentNew = {
  path: '/adjustment-new',
  component: Layout,
  redirect: '/adjustment-new/transfer-price-adjustment/factor',
  name: 'adjustment-new',
  meta: {
    title: 'adjustmentNew',
    icon: 'el-icon-set-up'
  },
  children: [
    { //转移价格调整
      path: 'transfer-price-adjustment',
      component: () => import('@/views/AdjustmentNew/TransferPriceAdjustment'),  //router-view
      redirect: 'transfer-price-adjustment/factor',
      name: 'an-transfer-price-adjustment',
      meta: {title: 'anTransferPriceAdjustment'},
      children: [
        { //转移价格调整因子
          path: 'factor',
          component: () => import('@/views/AdjustmentNew/TransferPriceAdjustment/Factor'),  //router-view
          name: 'atpa-factor',
          meta: {title: 'atpaFactor'},
        },
        { //调整项生成方案（代码引用）
          path: 'project',
          component: () => import('@/views/AdjustmentNew/TransferPriceAdjustment/Project'),
          name: 'atpa-project',
          meta: {title: 'atpaProject'}
        },
        { //转移价格调整规则器
          path: 'regulation',
          component: () => import('@/views/AdjustmentNew/TransferPriceAdjustment/Regulation'),
          name: 'atpa-regulation',
          meta: {title: 'atpaRegulation'}
        },
      ]
    },
    { //转移收支调整
      path: 'transfer-adjustment',
      component: () => import('@/views/AdjustmentNew/TransferAdjustment'), //router-view
      redirect: 'transfer-adjustment/balance-factor',
      name: 'an-transfer-adjustment',
      meta: {title: 'anTransferAdjustment'},
      children: [
        { //转移收支调整因子
          path: 'balance-factor',
          component: () => import('@/views/AdjustmentNew/TransferAdjustment/BalanceFactor'), //router-view
          name: 'ata-balance-factor',
          meta: {
            title: 'ataBalanceFactor',
          },
        },
        {   //转移收支调整规则器
          path: 'balance-regulation',
          component: () => import('@/views/AdjustmentNew/TransferAdjustment/BalanceRegulation'),
          name: 'ata-balance-regulation',
          meta: {title: 'ataBalanceRegulation'}
        },
      ]
    },
  ]
}
export default adjustmentNew
